package com.yetm.service.impl;

import com.yetm.dao.UserMapper;
import com.yetm.po.User;
import com.yetm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    private UserMapper userMapper;

    @Autowired
    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public boolean login() {
        System.out.println("login...");
        return false;
    }

    public boolean register() {
        System.out.println("register...");
        return false;
    }

    public User getUser(String id) {
        User user = userMapper.getUser(id);
        System.out.println(user);
        return user;
    }
}
